use "Table8data.dta" 
ssc install outreg2
************Adjustment Mechanism************************************************




xtreg log_tot_pop log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton i.STATEFIP, cluster(FIPS)
outreg2 using DID_mechanism.tex,replace ctitle(Log(Population)) label keep(log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton) addtext(State FE, Yes) title("Table 1: Adjustment Mechanisms"\label{tab1})


xtreg log_total_farmarea log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton i.STATEFIP, cluster(FIPS)
outreg2 using DID_mechanism.tex,append ctitle(Log(Farmarea)) label keep(log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton) addtext(State FE, Yes) title("Table 1: Adjustment Mechanisms"\label{tab1})

xtreg log_total_harvestarea log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton i.STATEFIP, cluster(FIPS)
outreg2 using DID_mechanism.tex,append ctitle(Log(Harvestarea)) label keep(log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton) addtext(State FE, Yes) title("Table 1: Adjustment Mechanisms"\label{tab1})


xtreg Percent_Tenant log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton i.STATEFIP, cluster(FIPS)
outreg2 using DID_mechanism.tex,append ctitle(Tenants) label keep(log_Budgetm_wheat log_Budgetm_corn log_Budgetm_cotton) addtext(State FE, Yes) title("Table 1: Adjustment Mechanisms"\label{tab1})